﻿using System;
using System.Collections.Generic;
using System.Linq;
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.ComponentModel;
using System.Collections;

namespace My_Windows_Media_Player
{
    public class myCustomList : ListBox, INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        ListBox mlistbox = new ListBox();

        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }

        public myCustomList()
        {
        }


      /*  public ListBox.ObjectCollection Items
        {
            get
            {
                return this.mlistbox.Items;
            }

            set
            {
                // if (value != this.oldItemList)
                {
                    //this.mlistbox.Items.Clear 
                    IEnumerator enume = value.GetEnumerator();
                    // this.mlistbox.Items. = value.CopyTo
                    NotifyPropertyChanged("ItemList");

                }

            }
        }*/
    }
}
